/*
 * Copyright (c) 2014. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * http://www.apache.org/licenses/LICENSE-2.0
 */

package com.dc.gameserver.serverCore.model.dbsql.mapper;

import com.dc.gameserver.serverCore.model.dbsql.modelVo.TRoleArea;
import com.dc.gameserver.serverCore.model.dbsql.modelVo.TRoleAreaExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TRoleAreaMapper {
    int countByExample(TRoleAreaExample example);

    int deleteByExample(TRoleAreaExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TRoleArea record);

    int insertSelective(TRoleArea record);

    List<TRoleArea> selectByExample(TRoleAreaExample example);

    TRoleArea selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TRoleArea record, @Param("example") TRoleAreaExample example);

    int updateByExample(@Param("record") TRoleArea record, @Param("example") TRoleAreaExample example);

    int updateByPrimaryKeySelective(TRoleArea record);

    int updateByPrimaryKey(TRoleArea record);
}